package Request;

import Container.*;

public class RegisterRequest extends Request {
    private String username;
    private String password;
    private String name;
    private String tel;
    private String addr;
    private String email;
    
    public RegisterRequest(String username, String password, String name, 
                           String tel, String addr, String email) {
        this.username = username;
        this.password = password;
        this.name = name;
        this.tel = tel;
        this.addr = addr;
        this.email = email;
    }
    
    public User getUser() {
        return new User(username, password);
    }
    
    public UserInfo getUserInfo() {
        return new UserInfo(name, tel, addr, email);
    }
    
}